/*
 * @Description: 
 * @version: 
 * @Author: wyx
 * @Date: 2020-09-30 09:36:46
 * @LastEditDate: Do not exit
 */
import request from '@/utils/request'

/**
 * 获取全部类别列表
 */
export function getCategory(){
    return request({url:"/goods-service/category/alllist",method:"get"})
}

/**
 * 添加
 */
export function insert(form){
    return request({url:"/goods-service/category",method:"post",data:form})
}

/**
 * 修改
 */
export function update(form){
    return request({url:"/goods-service/category",method:"put",data:form})
}

/**
 * 删除
 */
export function removeById(id){
    return request({url:"/goods-service/category/"+id,method:"delete"})
}